var System = Java.type('java.lang.System');
var ProcessBuilder = Java.type('java.lang.ProcessBuilder');
function log(obj) {
    System.out.println(obj)
}

//command为字符串数组
//eg newProcess("/bin/bash","-c","chmod -R 766 /opt/game_plugin/*")
function newProcess(command)  {
    var  cmds = []
    for (var i = 0; i < arguments.length; i++) {
        cmds.push(arguments[i])
    }
    var pb = new ProcessBuilder(cmds);
    pb.start()
}